<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%><html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>管理平台</title>
<%@ include file="/common/meta.jsp" %>
<%@ include file="/common/jquery-ui-inc.jsp" %>
<script type="text/javascript" src="${ctx}/uct/js/md5.js"></script>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	overflow:hidden;
}
.STYLE3 {color: #528311; font-size: 12px; }
.STYLE4 {
	color: #42870a;
	font-size: 12px;
}
-->
</style></head>
<script>
	var gourl = "${ctx}/index.jsp";

	
	var inputForm = '#inputForm';
//	$(function(){
//		$(inputForm).form({
//		    onSubmit:function(){	
//		    	var pass = $("#upass").val();
//		    	$("#md5Pass").val(pass.md5()); 
//		    	return true;
//		    },
//		    success:function(data){
//		    	var result = jQuery.parseJSON(data);
//		    	alert(result.isok);
//		    	if(result.isok=='T'){
//		    		//$.messager.alert('登录信息', '操作成功', 'info',function(){
//			    		//window.location.href='${ctx}';
//			    		window.location.href=gourl;
//			    		
//		    		//});
//		    	}else{
//		    		alert("UU");
//		    		$.messager.alert('提交结果', result.msg, 'info');
//		    	}        
//		    }
//		});

		
//	}) ;
	
	function toSubmit(){
		$(inputForm).form({
		    onSubmit:function(){	
		    	var pass = $("#upass").val();
		    	$("#md5Pass").val(pass.md5()); 
		    	return true;
		    },
		    success:function(data){
		    	var result = jQuery.parseJSON(data);
		    	if(result.isok=='T'){
		    		//$.messager.alert('登录信息', '操作成功', 'info',function(){
			    		//window.location.href='${ctx}';
			    		window.location.href=gourl;
			    		
		    		//});
		    	}else{
		    		$.messager.alert('提交结果', result.msg, 'info');
		    	}        
		    }
		});
	
	}
	
	if (self != top) {
		top.location = self.location;
	}
</script>
<body>
<form id="inputForm" name="inputForm" method="post" action="${ctx}/uct/core/login!submit.action" >
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<input type="hidden" name="md5Pass" id="md5Pass" value=""/>
  <tr>
    <td bgcolor="#e5f6cf">&nbsp;</td>
  </tr>
  <tr>
    <td height="608" background="images/login_03.gif"><table width="862" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="266" background="images/login_04.gif">&nbsp;</td>
      </tr>
      <tr>
        <td height="95"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="424" height="95" background="images/login_06.gif">&nbsp;</td>
            <td width="183" background="images/login_07.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="21%" height="30"><div align="center"><span class="STYLE3">用户</span></div></td>
                <td width="79%" height="30"><input type="text" name="uname"  id="uname" value="admin"  style="height:18px; width:130px; border:solid 1px #cadcb2; font-size:12px; color:#81b432;"></td>
              </tr>
              <tr>
                <td height="30"><div align="center"><span class="STYLE3">密码</span></div></td>
                <td height="30"><input type="password"  class="TxtPasswordCssClass" id="upass" name="upass"  value="123456"  style="height:18px; width:130px; border:solid 1px #cadcb2; font-size:12px; color:#81b432;"></td>
              </tr>
              <tr>
                <td height="30"><div align="center" class="STYLE3">验证码</div></td>
                <td height="30">
                <input type="text" id="randImge" name="randImge" style="height:18px; width:50px; border:solid 1px #cadcb2; font-size:12px; color:#81b432;"/>
                 <a href="#" class="suiji"><img height="15" width="50" src="${ctx}/uct/image.jsp" onclick="this.src=this.src+'?r='+new Date().getTime();" ></a></td>
              </tr>
            </table></td>
            <td width="255" background="images/login_08.gif">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="247" valign="top" background="images/login_09.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="22%" height="30">&nbsp;</td>
            <td width="56%"><table width="100%" height="30" border="0" cellspacing="0">
              <tr>
                <td width="53%">&nbsp;</td>
                <td width="11%">&nbsp;</td>
                <td align="center"><input type="image" src="${ctx}/images/dl.gif" width="70" height="22" onClick="toSubmit()"/></td>
                <td width="24%">&nbsp;</td>
              </tr>
            </table></td>
            <td width="22%">&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="44%" height="20">&nbsp;</td>
                <td width="56%" class="STYLE4"><a href="http://192.168.12.96:8080/bbs">您的支持是我们最大的帮助</a></td>
              </tr>
            </table></td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td bgcolor="#a2d962">&nbsp;</td>
  </tr>
</table>
</form>
<!-- <area shape="rect" coords="40,3,78,18" href="#">-->
<map name="Map"><area shape="rect" coords="3,3,36,19" ></map></body>
</html>
